#include "main.h"

WSADATA wsadata;

z_stream            zin_stream,
                    zout_stream;

int main(int argc, char *argv[])
{
    if (WSAStartup(MAKEWORD(1,1), &wsadata) != NO_ERROR)
        return -1;

	int err = Z_OK;

    zin_stream.zalloc = zout_stream.zalloc = (alloc_func)0;
    zin_stream.zfree = zout_stream.zfree = (free_func)0;
    zin_stream.opaque = zout_stream.opaque = (voidpf)0;

    err = inflateInit(&zin_stream);
    if (err != Z_OK) return -2;

    err = deflateInit(&zout_stream, Z_DEFAULT_COMPRESSION);
    if (err != Z_OK) return -2;


    ClientConnect();

    WSACleanup();
    system( "pause" );

    deflateEnd(&zin_stream);
    inflateEnd(&zout_stream);

    return 0;
}
